home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ TrueType Cache Clear 1.xpl < prev    next >
Text File  |  2003-11-19  |  963b  |  40 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Interface\TrueType Fonts"
  5. "NAME"="TrueType Fonts Cache Clear"
  6. "VERSION"="1.46"
  7. "OSVERSION"="1010100"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Clear Font Cache"
  10. "DESCRIPTION 1"="Click on the button to clear the automatically generated font cache."
  11. "AUTHOR"="Xteq Systems"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright  Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=" "
  15.  
  16.  
  17. Sub Plugin_Initialize 
  18. End Sub
  19.  
  20. Sub Plugin_CheckData(ElementIndex)
  21. End Sub
  22.  
  23. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  24.   s=GetWinDir
  25.   s=s & "ttfCache"
  26.   if FileExists(s) then
  27.    Call FileSetAttribute(s,"R-")
  28.    Call FileSetAttribute(s,"H-")
  29.    Call FileSetAttribute(s,"R-")
  30.    Call FileDelete(s)
  31.    Call MsgInformation("Font Cache has been cleared")
  32.   else
  33.    Call MsgError("The Font Cache is already empty!")
  34.   end if
  35.  
  36. End Sub
  37.  
  38. Sub Plugin_Terminate 
  39. End Sub
  40.